﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ImportSettingSchame"
    targetNamespace="http://tempuri.org/"
    elementFormDefault="qualified"
    xmlns="http://tempuri.org/ImportSettingSchame.xsd"
    xmlns:mstns="http://tempuri.org/ImportSettingSchame.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
  <xs:element name="Import">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="ImportSetting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PK">
                <xs:complexType>
                  <xs:attribute name="Name" use="required"></xs:attribute>
                  <xs:attribute name="IdFactoryKey">
                  </xs:attribute>
                  <xs:attribute name="IsGuid" fixed="IsGuid">
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
              <xs:element name="Columns">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element maxOccurs="unbounded" name="Column">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Valids" minOccurs="0" maxOccurs="1">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="Valid" maxOccurs="unbounded">
                                  <xs:complexType>
                                    <xs:attribute name="DataSourceKey"></xs:attribute>
                                    <xs:attribute name="EnumKey"></xs:attribute>
                                    <xs:attribute name="EnumDes"></xs:attribute>
                                    <xs:attribute name="TableName"></xs:attribute>
                                    <xs:attribute name="TextName"></xs:attribute>
                                    <xs:attribute name="Length"></xs:attribute>
                                    <xs:attribute name="ColumnName"></xs:attribute>
                                    <xs:attribute name="PK"></xs:attribute>
                                    <xs:attribute name="Des"></xs:attribute>
                                    <xs:attribute name="TextColumn"></xs:attribute>
                                    <xs:attribute name="Name" use="required">
                                      <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                          <xs:enumeration value="DataType.Int"></xs:enumeration>
                                          <xs:enumeration value="DataType.Float"></xs:enumeration>
                                          <xs:enumeration value="DataType.DateTime"></xs:enumeration>
                                          <xs:enumeration value="DataType.Enum"></xs:enumeration>
                                          <xs:enumeration value="Length"></xs:enumeration>
                                          <xs:enumeration value="Empty"></xs:enumeration>
                                          <xs:enumeration value="Rep"></xs:enumeration>
                                          <xs:enumeration value="FK"></xs:enumeration>
                                        </xs:restriction>
                                      </xs:simpleType>
                                    </xs:attribute>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                        <xs:attribute name="Col" use="required"></xs:attribute>
                        <xs:attribute name="Name" use="required"></xs:attribute>
                        <xs:attribute name="Des" use="required"></xs:attribute>
                        <xs:attribute name="TextName" use="optional"></xs:attribute>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="StartRow" type="xs:int" use="required"></xs:attribute>
            <xs:attribute name="TableName" type="xs:string" use="required"></xs:attribute>
            <xs:attribute name="SheetName" use="required"></xs:attribute>
            <xs:attribute name="DataSourceKey" use="required"></xs:attribute>
            <xs:anyAttribute/>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
